package cn.ad.param;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class ReportParams {
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date startTime;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;
	
	private int campaignId;

	private int download;//0 查询  1 下载
	
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getCampaignId() {
		return campaignId;
	}

	public void setCampaignId(int campaignId) {
		this.campaignId = campaignId;
	}
	
	public int getDownload() {
		return download;
	}

	public void setDownload(int download) {
		this.download = download;
	}

	public Map<String,Object> getSearchMap(){
		Map<String,Object> map = new HashMap<String, Object>(3);
		map.put("campaignId", campaignId);
		map.put("startTime", startTime);
		map.put("endTime", endTime);
		return map;
	}
}
